﻿<phone:PhoneApplicationPage x:Class="USElections.Newsfeed.Pages.FeedReaderPage"
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
                            xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
                            xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
                            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                            FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            FontSize="{StaticResource PhoneFontSizeNormal}"
                            Foreground="{StaticResource PhoneForegroundBrush}"
                            SupportedOrientations="Portrait"
                            Orientation="Portrait"
                            mc:Ignorable="d"
                            d:DesignHeight="696"
                            d:DesignWidth="480"
                            shell:SystemTray.IsVisible="True"
                            shell:SystemTray.Opacity="1"
                            Style="{StaticResource TransitionPageStyle}">
    <shell:SystemTray.ProgressIndicator>
        <shell:ProgressIndicator IsIndeterminate="True"
                                 IsVisible="False"
                                 Text="Loading..." />
    </shell:SystemTray.ProgressIndicator>

    <Grid x:Name="LayoutRoot"
          Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <!--<StackPanel x:Name="TitlePanel"
                    Grid.Row="0"
                    Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle"
                       Text="{Binding Title.Text}"
                       Style="{StaticResource PhoneTextNormalStyle}" />
            <TextBlock x:Name="PageTitle" Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>-->

        <Grid x:Name="ContentPanel"
              Grid.Row="1"
              Margin="0">

            <phone:WebBrowser x:Name="webbrowser"
                              Source="{Binding Id}" />

            <Border Background="Gray"
                    HorizontalAlignment="Right"
                    VerticalAlignment="Bottom"
                    Padding="4"
                    Margin="12,12,12,36"
                    Opacity="0.5">
                <TextBlock x:Name="posTxt"
                           Text="1 / 10"
                           Style="{StaticResource PhoneTextNormalStyle}" />
            </Border>
        </Grid>
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True"
                              IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Icons/appbar.back.rest.png"
                                            Text="previous"
                                            Click="ApplicationBarIconButtonClick" />
            <shell:ApplicationBarIconButton IconUri="/Icons/appbar.next.rest.png"
                                            Text="next"
                                            Click="ApplicationBarIconButtonClick" />
            <shell:ApplicationBarIconButton IconUri="/Icons/appbar.share.rest.png"
                                            Text="share"
                                            Click="ApplicationBarIconButtonClick" />
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>
